import request from "@/utils/request";



export function getTableList(params) {
    return request({
        url: `web/list`,
        method: "get",
        params,
    });
}
export function getDetail(id) {
    return request({
        url: `/web/${id}`,
        method: "get",
    });
}
export function aprrove(id, data) {
    return request({
        url: `/web/${id}/audit`,
        method: "put",
        data
    });
}
export function deleteItem(id) {
    return request({
        url: `/web/${id}`,
        method: "delete"
    });
}
export function createItem(data) {
    return request({
        url: `/web`,
        method: "post",
        data
    });
}
export function updateItem(data) {
    return request({
        url: `/web/${data.id}`,
        method: "put",
        data
    });
}